<?php

declare(strict_types=1);

/**
 * 后台日志管理
 * User：Abell
 * Date：2020/4/26
 * Time：18:11
 */

namespace App\Controller\Admin;

use App\Controller\AbstractController;
use Hyperf\HttpServer\Contract\RequestInterface;
use App\Service\RequestlogService;
use Hyperf\Di\Annotation\Inject;

class RequestlogController extends AbstractController
{
    /**
     * @Inject
     * @var RequestlogService
     */
    private $service;

    /**
     * 日志记录显示
     * @Author abell
     * @DateTime 2020-05-28
     * @param array $request
     * @return object
     */
    public function logList(RequestInterface $request){
        return $this->jsonApi($this->service->logList($request->all()));
    }
}
